package com.itany.conf;

import com.alipay.api.DefaultAlipayClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AlipayConfig {

     @Bean(name="alipayClient")
    public DefaultAlipayClient alipayClient(){
         DefaultAlipayClient alipayClient =
                 new DefaultAlipayClient("https://openapi.alipaydev.com/gateway.do"
                 ,"2021000118612058"
                 ,""
                 ,"json"
                 ,"utf-8"
                 ,""
                 ,"RSA2");
         return alipayClient;
    }


}
